/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.risk.service.impl;

import com.rbh.risk.dao.PatientDao;
import com.rbh.risk.entity.Patient;
import com.rbh.risk.service.PatientService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("patientService")
public class PatientServiceImpl implements PatientService {
    
    @Autowired
    public PatientDao patientDao;
    
    @Override
    public Patient getById(String hosGuid) {
        return this.patientDao.getById(hosGuid);
    }

    @Override
    public Patient getByHN(String hn) {
        return this.patientDao.getByHN(hn);
    }

    @Override
    public List<Patient> getByWords(String words) {
        return this.patientDao.getByWords(words);
    }
    
}
